package com.pb.infra.oth.util;
/**
 * 文件类型判断类
 * @author liaohaoyuan
 * @version v1.0.0
 */
public class FileTypeUtils {
 public static String bytesToHexString(byte[] src){
     StringBuilder builder = new StringBuilder();
     if (src == null || src.length <= 0){
         return null;
     }
     String hv;
     for (byte aSrc : src){
         hv = Integer.toHexString(aSrc & 0xFF).toUpperCase();
         if (hv.length() < 2){
             builder.append(0);
         }
         builder.append(hv);
     }
     return builder.toString();
 }
    public static boolean isNotBlank(String str){
        return str !=null && str.length()>0 && str.trim().length() > 0;
    }
}
